package com.zmzncs.lmtc.module.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmzncs.lmtc.common.pojo.enums.OrderPayTypeEnum;
import com.zmzncs.lmtc.common.pojo.enums.WhetherEnum;
import com.zmzncs.lmtc.module.customer.dao.CarDao;
import com.zmzncs.lmtc.module.customer.pojo.car.CarDTO;
import com.zmzncs.lmtc.module.customer.pojo.card.Card;
import com.zmzncs.lmtc.module.customer.pojo.card.CardHasForm;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 客户-会员卡 服务类
 * </p>
 *
 * @author 任建波
 * @since 2020-09-02
 */
public interface CardService extends IService<Card> {

    /**是否有会员卡*/
    WhetherEnum hasCustomerCard(CardHasForm cardHasForm);

    /**是否有月租卡*/
    OrderPayTypeEnum hasCustomerCardAndUpdate(CardHasForm cardHasForm);

    /**是否有月租卡*/
    CarDTO getValidCarByCarNumber(String carNumber);

}
